package com.enjoylearning.content.service;

import com.enjoylearning.base.model.PageParams;
import com.enjoylearning.base.model.PageResult;
import com.enjoylearning.content.model.dto.AddCourseDto;
import com.enjoylearning.content.model.dto.CourseBaseInfoDto;
import com.enjoylearning.content.model.dto.EditCourseDto;
import com.enjoylearning.content.model.po.CourseBase;
import com.enjoylearning.content.model.dto.QueryCourseParamsDto;

public interface CourseBaseInfoService {
    //分页查询课程
    public PageResult<CourseBase> queryCourseBaseList(Long companyId,PageParams pageParams, QueryCourseParamsDto courseParamsDto);

    //新增课程
    public CourseBaseInfoDto createCourseBase(Long companyId, AddCourseDto addCourseDto);

    //根据id查询课程
    public CourseBaseInfoDto selectById(Long id);

    //修改课程信息
    public CourseBaseInfoDto updateCourseBase(Long companyId, EditCourseDto editCourseDto);

    //删除课程信息
    void deleteCourseBase(Long id);
}
